.class public Les/o60;
.super Lcom/estrongs/fs/a;
.source "WebdavFileObject.java"


# instance fields
.field protected p:Z

.field protected q:Z


# direct methods
.method public constructor <init>(Ljava/lang/String;JJZ)V
    .locals 1

    .line 14
    invoke-direct {p0, p1}, Lcom/estrongs/fs/a;-><init>(Ljava/lang/String;)V

    const/4 v0, 0x1

    .line 15
    iput-boolean v0, p0, Les/o60;->p:Z

    .line 16
    iput-boolean v0, p0, Les/o60;->q:Z

    .line 17
    iput-wide p2, p0, Lcom/estrongs/fs/a;->e:J

    .line 18
    iput-wide p4, p0, Lcom/estrongs/fs/a;->f:J

    if-eqz p6, :cond_0

    .line 19
    sget-object p2, Lcom/estrongs/fs/l;->c:Lcom/estrongs/fs/l;

    iput-object p2, p0, Lcom/estrongs/fs/a;->a:Lcom/estrongs/fs/l;

    goto :goto_0

    .line 20
    :cond_0
    sget-object p2, Lcom/estrongs/fs/l;->d:Lcom/estrongs/fs/l;

    iput-object p2, p0, Lcom/estrongs/fs/a;->a:Lcom/estrongs/fs/l;

    .line 21
    :goto_0
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p0, p1}, Les/o60;->setName(Ljava/lang/String;)V

    return-void
.end method

.method public constructor <init>(Ljava/lang/String;Lde/aflx/sardine/DavResource;Z)V
    .locals 3

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/fs/a;-><init>(Ljava/lang/String;)V

    const/4 p1, 0x1

    .line 2
    iput-boolean p1, p0, Les/o60;->p:Z

    .line 3
    iput-boolean p1, p0, Les/o60;->q:Z

    .line 4
    invoke-virtual {p2}, Lde/aflx/sardine/DavResource;->getName()Ljava/lang/String;

    move-result-object v0

    if-eqz p3, :cond_0

    .line 5
    :try_start_0
    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_0

    const-string v1, "/"

    invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    const/4 v1, 0x0

    .line 6
    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v2

    sub-int/2addr v2, p1

    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    goto :goto_2

    .line 7
    :cond_0
    :goto_0
    :try_start_1
    invoke-virtual {p2}, Lde/aflx/sardine/DavResource;->getModified()Ljava/util/Date;

    move-result-object p1

    invoke-virtual {p1}, Ljava/util/Date;->getTime()J

    move-result-wide v1

    iput-wide v1, p0, Lcom/estrongs/fs/a;->f:J
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_1

    :catch_1
    nop

    :goto_1
    if-eqz p3, :cond_1

    .line 8
    :try_start_2
    sget-object p1, Lcom/estrongs/fs/l;->c:Lcom/estrongs/fs/l;

    iput-object p1, p0, Lcom/estrongs/fs/a;->a:Lcom/estrongs/fs/l;

    const-wide/16 p1, 0x0

    .line 9
    iput-wide p1, p0, Lcom/estrongs/fs/a;->e:J

    goto :goto_3

    .line 10
    :cond_1
    sget-object p1, Lcom/estrongs/fs/l;->d:Lcom/estrongs/fs/l;

    iput-object p1, p0, Lcom/estrongs/fs/a;->a:Lcom/estrongs/fs/l;

    .line 11
    invoke-virtual {p2}, Lde/aflx/sardine/DavResource;->getContentLength()Ljava/lang/Long;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/Long;->longValue()J

    move-result-wide p1

    iput-wide p1, p0, Lcom/estrongs/fs/a;->e:J
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    goto :goto_3

    .line 12
    :goto_2
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    .line 13
    :goto_3
    invoke-virtual {p0, v0}, Les/o60;->setName(Ljava/lang/String;)V

    return-void
.end method


# virtual methods
.method public g()Z
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 1
    :try_start_0
    invoke-virtual {p0}, Lcom/estrongs/fs/a;->d()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Les/p60;->a(Ljava/lang/String;)Z

    move-result v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return v0

    :catch_0
    move-exception v0

    .line 2
    new-instance v1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v1, v0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v1
.end method

.method protected j()Z
    .locals 1

    .line 1
    invoke-virtual {p0}, Les/o60;->l()Z

    move-result v0

    return v0
.end method

.method protected k()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Les/o60;->q:Z

    return v0
.end method

.method protected l()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Les/o60;->p:Z

    return v0
.end method

.method public setName(Ljava/lang/String;)V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/fs/a;->d:Ljava/lang/String;

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    .line 2
    :goto_0
    invoke-super {p0, p1}, Lcom/estrongs/fs/a;->setName(Ljava/lang/String;)V

    if-eqz v0, :cond_2

    .line 3
    invoke-virtual {p0}, Lcom/estrongs/fs/a;->i()Lcom/estrongs/fs/l;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/fs/l;->b()Z

    move-result p1

    if-eqz p1, :cond_2

    .line 4
    iget-object p1, p0, Lcom/estrongs/fs/a;->b:Ljava/lang/String;

    const-string v0, "/"

    invoke-virtual {p1, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result p1

    if-nez p1, :cond_1

    .line 5
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Lcom/estrongs/fs/a;->b:Ljava/lang/String;

    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/fs/a;->b:Ljava/lang/String;

    .line 6
    :cond_1
    iget-object p1, p0, Lcom/estrongs/fs/a;->c:Ljava/lang/String;

    invoke-virtual {p1, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result p1

    if-nez p1, :cond_2

    .line 7
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Lcom/estrongs/fs/a;->c:Ljava/lang/String;

    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/fs/a;->c:Ljava/lang/String;

    :cond_2
    return-void
.end method
